package com.example.blog2.service;

import com.example.blog2.mapper.UserInfoMapper;
import com.example.blog2.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo selectByName(String username) {
        return userInfoMapper.selectByName(username);
    }

    public UserInfo selectById(Integer id) {
        return userInfoMapper.selectById(id);
    }

}
